package com.ngovanhau.justsort;

import com.ngovanhau.justsort.control.ValueControl;
import com.ngovanhau.justsort.sound.MusicBackground;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;

public class HelpActivity extends Activity {
	public MusicBackground music;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_help);
	}

	public void onClick(View view){
		if(view.getId()==R.id.help_back){
			this.finish();
		}
	}
	
	@Override
	protected void onResume(){
		super.onResume();
		music = new MusicBackground();
		music.loadMusic(this);
		music.play();
	}
	
	@Override
	protected void onStop(){
		super.onStop();
		music.pause();
	}
}
